import axios from "../utils/axios";

export default {
  getGoods(type) {
    return axios.get(`/api/goods?type=${type}`);
  },
  getNews() {
    return axios.get("/auth/goods/new");
  },
  getHot() {
    return axios.get("/auth/goods/hot");
  },
  getDetail(id) {
    return axios.get("/api/goods/" + id);
  },
  search(key) {
    return axios.get("/api/goods/search?key=" + key);
  }
};
